{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do\..\output\logfiles\Table_4.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 May 2025, 15:55:39
{com}. 
. use ..\temp/price_data.dta, clear
. 
. reghdfe ap_ln hhi_ln FXwdi_ln, absorb(producty) cluster(bhy)
{res}{txt}(dropped 7 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 1 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}    18,947
{txt}Absorbing 1 HDFE group{col 51}F({res}   2{txt},{res}    125{txt}){col 67}= {res}   8349.61
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9062
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9019
{txt}{col 51}Within R-sq.{col 67}= {res}    0.8315
{txt}{col 1}Number of clusters ({res}bhy{txt}) {col 30}= {res}       126{txt}{col 51}Root MSE{col 67}= {res}    1.0012

{txt}{ralign 78:(Std. err. adjusted for {res:126} clusters in {res:bhy})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       ap_ln{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}hhi_ln {c |}{col 14}{res}{space 2} .0673831{col 26}{space 2} .0198182{col 37}{space 1}    3.40{col 46}{space 3}0.001{col 54}{space 4} .0281605{col 67}{space 3} .1066058
{txt}{space 4}FXwdi_ln {c |}{col 14}{res}{space 2} .9221511{col 26}{space 2} .0090185{col 37}{space 1}  102.25{col 46}{space 3}0.000{col 54}{space 4} .9043025{col 67}{space 3} .9399997
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 1.730787{col 26}{space 2} .1164891{col 37}{space 1}   14.86{col 46}{space 3}0.000{col 54}{space 4}  1.50024{col 67}{space 3} 1.961333
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}    producty{col 14}{c |}{space 1}      839{col 27}{space 1}      839{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{com}. sum  ap_ln   if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}ap_ln {c |}{res}     18,947    6.468824    3.196315  -2.391694   19.56784
{com}. loc m = r(mean)
. outreg2 using ..\output/table4_price.tex, tex(frag) replace label  nocons dec(2) pdec(2) addtext("Product-year fixed effects", "Yes")    addstat(Dependent variable mean, `m')
{txt}{stata `"shellout using `"..\output/table4_price.tex"'"':..\output/table4_price.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output/table4_price.txt", label"':seeout}
{com}. 
. reghdfe ap_ln  hhi_ln  FXwdi_ln cce rqe loggdppc gini_i, absorb(producty) cluster(bhy)
{res}{txt}(dropped 11 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 1 iterations)
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}    15,632
{txt}Absorbing 1 HDFE group{col 51}F({res}   6{txt},{res}    125{txt}){col 67}= {res}   7007.23
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.8969
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8911
{txt}{col 51}Within R-sq.{col 67}= {res}    0.7966
{txt}{col 1}Number of clusters ({res}bhy{txt}) {col 30}= {res}       126{txt}{col 51}Root MSE{col 67}= {res}    1.0140

{txt}{ralign 78:(Std. err. adjusted for {res:126} clusters in {res:bhy})}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}       ap_ln{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}hhi_ln {c |}{col 14}{res}{space 2} .0442262{col 26}{space 2} .0214344{col 37}{space 1}    2.06{col 46}{space 3}0.041{col 54}{space 4} .0018048{col 67}{space 3} .0866475
{txt}{space 4}FXwdi_ln {c |}{col 14}{res}{space 2} .8669679{col 26}{space 2} .0122446{col 37}{space 1}   70.80{col 46}{space 3}0.000{col 54}{space 4} .8427343{col 67}{space 3} .8912014
{txt}{space 9}cce {c |}{col 14}{res}{space 2} .1432848{col 26}{space 2} .0187373{col 37}{space 1}    7.65{col 46}{space 3}0.000{col 54}{space 4} .1062013{col 67}{space 3} .1803683
{txt}{space 9}rqe {c |}{col 14}{res}{space 2}-.2308157{col 26}{space 2} .0301172{col 37}{space 1}   -7.66{col 46}{space 3}0.000{col 54}{space 4}-.2904215{col 67}{space 3}  -.17121
{txt}{space 4}loggdppc {c |}{col 14}{res}{space 2}-.0324296{col 26}{space 2}  .021682{col 37}{space 1}   -1.50{col 46}{space 3}0.137{col 54}{space 4}-.0753409{col 67}{space 3} .0104818
{txt}{space 6}gini_i {c |}{col 14}{res}{space 2} 5.388837{col 26}{space 2} .3019004{col 37}{space 1}   17.85{col 46}{space 3}0.000{col 54}{space 4} 4.791339{col 67}{space 3} 5.986336
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3165269{col 26}{space 2} .2813886{col 37}{space 1}    1.12{col 46}{space 3}0.263{col 54}{space 4} -.240376{col 67}{space 3} .8734298
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}    producty{col 14}{c |}{space 1}      830{col 27}{space 1}      830{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{com}. sum  ap_ln   if e(sample)==1

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 7}ap_ln {c |}{res}     15,632    6.731908    3.072601  -1.830062   19.56784
{com}. loc m = r(mean)
. outreg2 using ..\output/table4_price.tex, tex(frag)  append label  nocons dec(2) pdec(2) addtext("Product-year fixed effects", "Yes")   addstat(Dependent variable mean, `m')
{txt}{stata `"shellout using `"..\output/table4_price.tex"'"':..\output/table4_price.tex}
{browse `"C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do"' :dir}{com} : {txt}{stata `"seeout using "..\output/table4_price.txt", label"':seeout}
{com}. 
. codebook bh // Count of basic headings for footnote

{txt}{hline}
{res}bh{right:(unlabeled)}
{txt}{hline}

{col 19}Type: String ({res}str7{txt})

{col 10}Unique values: {res}88{col 51}{txt}Missing "": {res}0{txt}/{res}238,380

{txt}{col 15}Examples: {res}"1101172"
{col 25}"1105311"
{col 25}"1107321"
{col 25}"1501211"
{com}. codebook product // Count of products for footnote

{txt}{hline}
{res}product{right:group(ItemCode)}
{txt}{hline}

{col 19}Type: Numeric ({res}float{txt})

{col 18}Range: [{res}1{txt},{res}685{txt}]{col 55}Units: {res}1
{col 10}{txt}Unique values: {res}685{col 51}{txt}Missing .: {res}0{txt}/{res}238,380

{txt}{col 19}Mean: {res}{ralign 7:343}
{txt}{col 14}Std. dev.: {res}{ralign 7:197.743}

{txt}{col 12}Percentiles: {col 25}{ralign 7:10%}{ralign 10:25%}{ralign 10:50%}{ralign 10:75%}{ralign 10:90%}
{res}{col 25}{ralign 7:69}{ralign 10:     172}{ralign 10:     343}{ralign 10:     514}{ralign 10:     617}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\hnguyen7\OneDrive - International Monetary Fund (PRD)\Current Projects\Monopolized Imports\Replication\Import Monopolization Replication\Import Monopolization Replication\do\..\output\logfiles\Table_4.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 May 2025, 15:55:41
{txt}{.-}
{smcl}
{txt}{sf}{ul off}